<?xml version="1.0" encoding="UTF-8"?>
<!--
*************************************************************************
* The contents of this file are subject to the Openbravo  Public  License
* Version  1.0  (the  "License"),  being   the  Mozilla   Public  License
* Version 1.1  with a permitted attribution clause; you may not  use this
* file except in compliance with the License. You  may  obtain  a copy of
* the License at http://www.openbravo.com/legal/license.html 
* Software distributed under the License  is  distributed  on  an "AS IS"
* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
* License for the specific  language  governing  rights  and  limitations
* under the License. 
* The Original Code is Openbravo ERP. 
* The Initial Developer of the Original Code is Openbravo SL 
* All portions are Copyright (C) 2001-2006 Openbravo SL 
* All Rights Reserved. 
* Contributor(s):  ______________________________________.
************************************************************************
-->
<REPORT>
  <template file="ReportDebtPaymentTrack.html"/>
  <PARAMETER id="paramToolBar" name="toolbar" default=""/>
  <PARAMETER id="fieldCalendar" name="calendar" attribute="src" replace="es" default="en"/>
  <PARAMETER id="paramDirection" name="direction" default=""/>
  <PARAMETER id="paramLanguage" name="paramLanguage"/>
  <PARAMETER id="paramDateFrom" name="dateFrom" attribute="value"/>
	<PARAMETER id="paramDateFrom" name="dateFromdisplayFormat" attribute="displayformat" replace="xx"/>
	<PARAMETER id="paramDateFrom" name="dateFromsaveFormat" attribute="saveformat" replace="yy"/>
  <PARAMETER id="paramDateTo" name="dateTo" attribute="value"/>
	<PARAMETER id="paramDateTo" name="dateTodisplayFormat" attribute="displayformat" replace="xx"/>
	<PARAMETER id="paramDateTo" name="dateTosaveFormat" attribute="saveformat" replace="yy"/>
  <PARAMETER id="paramAmtFrom" name="AmtFrom" attribute="value"/>
  <PARAMETER id="paramAmtTo" name="AmtTo" attribute="value"/>
  <!--PARAMETER id="paramVacio" name="vacio" default=""/-->
  <PARAMETER id="parameterInvoice" name="constantInvoice" default="I"/>
  <PARAMETER id="paramInvoice" name="Invoice" boolean="checked" withId="parameterInvoice"/>
  <PARAMETER id="parameterConstantDPCNA" name="constantDPCNA" default="C"/>
  <PARAMETER id="paramDPCNA" name="DPCNA" boolean="checked" withId="parameterConstantDPCNA"/>
  <PARAMETER id="parameterConstantDPCA" name="constantDPCA" default="A"/>
  <PARAMETER id="paramDPCA" name="DPCA" boolean="checked" withId="parameterConstantDPCA"/>
  <PARAMETER id="parameterConstantDPGNA" name="constantDPGNA" default="G"/>
  <PARAMETER id="paramDPGNA" name="DPGNA" boolean="checked" withId="parameterConstantDPGNA"/>
  <PARAMETER id="parameterConstantDPGA" name="constantDPGA" default="J"/>
  <PARAMETER id="paramDPGA" name="DPGA" boolean="checked" withId="parameterConstantDPGA"/>
  <PARAMETER id="parameterConstantDPM" name="constantDPM" default="M"/>
  <PARAMETER id="paramDPM" name="DPM" boolean="checked" withId="parameterConstantDPM"/>
  <PARAMETER id="parameterConstantDPC" name="constantDPC" default="K"/>
  <PARAMETER id="paramDPC" name="DPC" boolean="checked" withId="parameterConstantDPC"/>
  <PARAMETER id="parameterConstantDPB" name="constantDPB" default="B"/>
  <PARAMETER id="paramDPB" name="DPB" boolean="checked" withId="parameterConstantDPB"/>
  <PARAMETER id="paramCSS" name="theme" attribute="href" replace="Default"/>
  <PARAMETER id="tdleftTabs" name="leftTabs" default=""/>
  <PARAMETER id="paramParentTabContainer" name="parentTabContainer" default=" "/>
  <PARAMETER id="paramMainTabContainer" name="mainTabContainer" default=" "/>
  <PARAMETER id="paramChildTabContainer" name="childTabContainer" default=" "/>
  <PARAMETER id="tdtopButtons" name="navigationBar" default=""/>
  <PARAMETER id="keyMap" name="keyMap" default=""/>
  <PARAMETER id="messageBoxID" name="messageType" attribute="class" replace="yy" default="HIDDEN"/>
  <PARAMETER id="messageBoxIDTitle" name="messageTitle" default=""/>
  <PARAMETER id="messageBoxIDMessage" name="messageMessage" default=""/>

  <SUBREPORT id="reportCBPartnerId_IN" name="reportCBPartnerId_IN" report="org/openbravo/erpCommon/reference/List">
    <ARGUMENT name="parameterListSelected"/>
  </SUBREPORT>

  <PARAMETER id="param2" name="param2" default="2"/>

  <structure name="structure1">
    <FIELD id="fieldRownum1">rownum</FIELD>
    <FUNCTION id="funcEvenOddRow1xx" name="MODULE" arg1="fieldRownum1" arg2="param2" format="integerEdition" attribute="class" replace="yy"/>
    <FIELD id="fieldBPartnername">name</FIELD>
    <FIELD id="fieldDocumentName">tipo</FIELD>
    <FIELD id="fieldDocumentDescription">description</FIELD>
    <FIELD id="fieldDocumentNo">documentno</FIELD>
    <FIELD id="fieldDateTrx">datetrx</FIELD>
    <FIELD id="fieldDatePlanned">dateplanned</FIELD>
    <FIELD id="fieldObs">obs</FIELD>
    <FIELD id="fieldAmount">amount</FIELD>
    <FIELD id="fieldTotalBPAmount" attribute="value">bpAmt</FIELD>
    <FIELD id="fieldTotalPPAAmount" attribute="value">ppaAmt</FIELD>
    <FIELD id="fieldId" attribute="href" replace="yy">id</FIELD>
    <FIELD id="fieldId" attribute="href" replace="xx">url</FIELD>
    <FUNCTION id="fieldDocBPAmount" name="SUM" attribute="value">amtDocBp</FUNCTION>
    <FUNCTION id="fieldDocPPAAmount" name="SUM" attribute="value">amtDocPpa</FUNCTION>
    <FUNCTION id="fieldBPAmount" name="ADD" arg1="fieldTotalBPAmount" arg2="fieldDocBPAmount" format="euroInform"/>
    <FUNCTION id="fieldPPAAmount" name="ADD" arg1="fieldTotalPPAAmount" arg2="fieldDocPPAAmount" format="euroInform"/>
    <SECTION id="sectionPartner" field="name"/>
    <SECTION id="sectionDetail"/>
  </structure>
  <DISCARD id="discard"/>
</REPORT>
